import { Injectable } from '@angular/core';
import {Observable} from "rxjs/Observable";
import {DamAPI} from "../../admin/peach/peach-constants";
import {RequestUtil} from "../../util/request-util";
import {MsgResult} from "../../models/msg-result";

@Injectable()
export class EnvSurveyService {

  constructor(
    private requestUtil: RequestUtil
  ) { }


  getEnvSurveyData(obj):Observable<MsgResult>{
    let params = "format=json&snCode="+obj.userCode;
    return this.requestUtil.get(DamAPI.getEnvSurvey,params);
  }

}
